/**
 * 联系人模块
 */
import makeApi from '../utils/services';

export const api = {
	getList: {
        url: '/api/friend/list',
        defaultParams: { searchkey: '' },
    },
    searchContact: {
        url: '/api/friend/contacts',
        defaultParams: { searchkey: '' },
    },
    applyList: {
        url: '/api/friend/applylist',
    },
    addContact: {
        url: '/api/friend/saveapply',
    },
    passContact: {
        url: '/api/friend/passapply',
    },
    deleteContact: {
        url: '/api/friend/delete',
    },
    applyCount: {
        url: '/api/friend/applycount',
    },
    setHasViewed: {
        url: '/api/friend/sethasviewed',
    }
};

const services = makeApi(api);

// 如果要定制重写某个请求接口可以在这里设置

export default services;
